<!--{template common/header}-->
<!--[name]自适应门户--频道通用列表页[/name]-->
<!--{eval $wheresql = category_get_wheresql($cat);}-->
<!--{eval $list = category_get_list($cat, $wheresql, $page);}-->
<!--{eval}-->
function get_article_num($aid, $type) {  $aid = intval($aid);  $type = trim($type);  $typearray = array(   'viewnum','commentnum','favtimes','sharetimes' );
    if ($aid == 0 || !in_array($type, $typearray)) {  return false; } else { return DB::result_first("SELECT $type FROM " . DB::table('portal_article_count') . " WHERE aid = '$aid'"); }
}
<!--{/eval}-->
<div class="pdnv">
    <div class="klp_con"><a href="./" title="{lang homepage}">{lang homepage}</a> <em class="klp_font"> > </em>
    <!--{loop $cat[ups] $value}-->
    <a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em class="klp_font"> > </em>
    <!--{/loop}-->
    $cat[catname] 
        <ul class="nav">
			<div class="bm_h cl" style="background:none; line-height:inherit; border:none; padding-right:0">
<!--{if $_G[setting][rssstatus] && !$_GET['archiveid'] && !klp_BeMobile()}--><a href="portal.php?mod=rss&catid=$cat[catid]" class="xi2 rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}-->
						<!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])}-->
				<a href="portal.php?mod=portalcp&ac=article&catid=$cat[catid]" class="xi2 addnew">{lang article_publish}</a>
				<!--{/if}-->
			</div>
            
        </ul>
    </div>
</div>
<!--{ad/text/wp a_t}--> 

<style id="diy_style" type="text/css"></style>
<style>
	.klp_wp{ width:100%}
	#wp{width:auto !important;}

</style>
<div class="wp klp_con">
	<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
  <div class="klp_con klp_catwp"> 
   <div class="klp_listwp"> 
   <div class="klp_catnv cl dismnone">
   	<ul class="cl">
   	
   		<!--{if $cat[subs]}-->	
   		<!--{loop $cat[subs] $value}-->	<li><a href="{$portalcategory[$value['catid']]['caturl']}" {if $value['catid'] == $cat['catid']}class="caton"{/if}>$value[catname]</a></li><!--{/loop}-->
   		<!--{else}-->
   			<!--{loop $cat[others] $value}-->	<li><a href="{$portalcategory[$value['catid']]['caturl']}" {if $value['catid'] == $cat['catid']}class="caton"{/if}>$value[catname]</a></li><!--{/loop}-->
   		
   		<!--{/if}-->

   	</ul>
   </div>
    <div class="klp_listboxcon"> 
     <div class="klp_newsbox cl">
     			<!--{loop $list['list'] $value}-->
				<!--{eval $highlight = article_title_style($value);}-->
				<!--{eval $article_url = fetch_article_url($value);}-->
      <div class="klp_newscon">
      <!--{if $value[pic]}--><a href="$article_url" class="klpd_focus"><img src="$value[pic]" alt="$value[title]" class="thumb" /></a><!--{/if}-->
       <div class="klp_title">
        <h2><a href="$article_url">$value[title]</a></h2>
       </div>
       <div class="meta">
        <span class="ptime"><em class="klp_font_ptime"></em>$value[dateline]</span>
        <span class="pview"><em class="klp_font_pview"></em>{echo get_article_num($value[aid],'viewnum')}</span>
        <span class="preply"><em class="klp_font_preply"></em>{echo get_article_num($value[aid],'commentnum')}</span>
        
        <!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $value['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $value['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
        <span class="pedite"><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$value[aid]">{lang edit}</a></span>
            <span class="pedite"><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$value[aid]" id="article_delete_$value[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a></span>
        <!--{/if}-->
       </div>
       <p class="note">$value[summary]</p>
      </div>
      <!--{/loop}--><!--{if $list['multi']}--><div class="pgs klp_pgs cl">{$list['multi']}</div><!--{/if}-->
     </div>
    </div> 
    
    <div class="klp_pindaosd"> 
		<div class="klp_catnvsd cl disnone">
			<ul class="cl">
				<div class="klp_catnvfirst"><a href="">栏目导航</a></div>
				<!--{if $cat[subs]}-->	
				<!--{loop $cat[subs] $value}-->	<li><a href="{$portalcategory[$value['catid']]['caturl']}" {if $value['catid'] == $cat['catid']}class="caton"{/if}>$value[catname]</a></li><!--{/loop}-->
				<!--{else}-->
				<!--{loop $cat[others] $value}-->	<li><a href="{$portalcategory[$value['catid']]['caturl']}" {if $value['catid'] == $cat['catid']}class="caton"{/if}>$value[catname]</a></li><!--{/loop}-->
				<!--{/if}-->
				

			</ul>
		</div>
    			<!--[diy=klp_side300001]-->
			<div id="klp_side300001" class="area"></div>
			<!--[/diy]-->
		

			<!--热门排行-->
			<div class="klp_clear"></div>
			<!--[diy=klp_remenrank]--><div id="klp_remenrank" class="area"></div><!--[/diy]-->
			<div class="klp_clear"></div>
			<!--热门排行-->
			
						<div class="drag">
				<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
			</div>

   </div>
   </div> 
   
  </div>

<!--{template common/footer}-->